package com.itbour.dao.material;

import java.util.List;
import java.util.Map;

import com.itbour.dto.template.DocTypeDto;
import com.itbour.dto.template.DocumentInfoDto;
import com.itbour.dto.template.PageInfoDto;


/**
 * 用户文档dao
 * copyright   itbour team 2015
 * @author     xc
 *
 */

public interface DocDao {

	// 取document
	public int selectTmplDocCnt(Map<String,Object> param);
	public List<DocumentInfoDto> selectTmplDoc(Map<String,Object> param);
	// 取最新document
	public DocumentInfoDto selectLatestTmplDoc();
	// 删除document
	public void deleteTmplDocLogic(Map<String,Object> param);
	public long deleteTmplDoc(Map<String,Object> param);
	// 删除pages
	public void deleteTmplPageLogic(Map<String,Object> param);
	// 新规document
	public void insertTmplDocInfo(Map<String,Object> param);
	// 新规page
	public void insertTmplPageInfo(Map<String,Object> param);
	// 取pages
	public List<PageInfoDto> selectTmplPage(Map<String,Object> param);
	// 更新document
	public void updateTmplDocById(Map<String,Object> param);
	// 检索doc的type分类信息
	public List<String> selectTmplTypeIds(Map<String,Object> param);
	// 删除doc的type分类信息
	public void deleteTmplTypeById(Map<String,Object> param);
	// 添加doc的type分类信息
	public void insertTmplTypeInfo(Map<String,Object> param);
	// 根据typeId找docId
	public List<String> selectTmplIdsByTypeIds(Map<String,Object> param);
	// For combobox
	public List<DocTypeDto> selectDocType(Map<String,Object> param);
}
